<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
    <title>发布表白</title>
    <link rel="stylesheet" href="/saysaying_my/Public/css/bootstrap.min.css" crossorigin="anonymous"/>
    <script src="/saysaying_my/Public/js/jquery-1.12.3.js" type="text/javascript" charset="utf-8"></script>
    <script src="/saysaying_my/Public/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" type="text/css" href="/saysaying_my/Public/simditor/styles/simditor.css" />

    <script type="text/javascript" src="/saysaying_my/Public/simditor/scripts/module.js"></script>
    <script type="text/javascript" src="/saysaying_my/Public/simditor/scripts/hotkeys.js"></script>
    <script type="text/javascript" src="/saysaying_my/Public/simditor/scripts/uploader.js"></script>
    <script type="text/javascript" src="/saysaying_my/Public/simditor/scripts/simditor.js"></script>
</head>
<body>
<div class="container">
    <div class="page-header">
        <h1>发布表白<small class="pull-right"><a href="<?php echo U("Home/Index/index") ?>" class="btn btn-default">返回</a></small></h1>
    </div>
    <form action="<?php echo U('Home/Index/add') ?>" method="post" class="form-horizontal">
        <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">TO：</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="content_to" placeholder="你要向谁表白？">
            </div>
        </div>
        <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">正文</label>
            <div class="col-xs-9">
                <textarea id="editor" name="content" autofocus class="form-control" style="height: 400px;"></textarea>
<!--                <textarea id="editor" name="content" placeholder="说出你的表白吧！" autofocus></textarea>-->
                <script>
                    var editor = new Simditor({
                        textarea: $('#editor'),
                        upload:{
                            url:'blog_upload.php',
                            fileKey:'file1'
                        }
                    });
                </script>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-9">
                <button type="submit" class="btn btn-block btn-success">提交</button>
            </div>
        </div>
    </form>
</div>
</body>
</html>